package com.hethongviet.vending.model;

/*Amount = 1*/

public class ProductService extends Model
{
	private int idBox = 0;
	private String codeProduct = "";
	private String staffService = "";
	private String staffChecker = "";
	private String machineCode = "";
	private long price = -1;
	private long date = -1;
	private int amount = 0;

	private boolean isSentServerOk = false;
	
	public static final int TRANSACTION_PRODUCT_TAKE_OUT = 0;
	public static final int TRANSACTION_PRODUCT_PUT_IN = 1;
	public static final int TRANSACTION_PRODUCT_CHANGE = 2;
	private int transaction = TRANSACTION_PRODUCT_PUT_IN;
	
	public ProductService()
	{
	}

	public String getCodeProduct()
	{
		return codeProduct;
	}

	public void setCodeProduct(String codeProduct)
	{
		this.codeProduct = codeProduct;
	}

	public long getPrice()
	{
		return price;
	}

	public void setPrice(long price)
	{
		this.price = price;
	}

	public String getStaffService()
	{
		return staffService;
	}

	public void setStaffService(String staffService)
	{
		this.staffService = staffService;
	}

	public String getStaffChecker()
	{
		return staffChecker;
	}

	public void setStaffChecker(String staffChecker)
	{
		this.staffChecker = staffChecker;
	}

	public int getTransaction()
	{
		return transaction;
	}

	public void setTransaction(int transaction)
	{
		this.transaction = transaction;
	}

	public int getAmount()
	{
		return amount;
	}

	public void setAmount(int amount)
	{
		this.amount = amount;
	}

	public long getDate()
	{
		return date;
	}

	public void setDate(long date)
	{
		this.date = date;
	}

	public String getMachineCode()
	{
		return machineCode;
	}

	public void setMachineCode(String machineCode)
	{
		this.machineCode = machineCode;
	}

	public int getIdBox()
	{
		return idBox;
	}

	public void setIdBox(int idBox)
	{
		this.idBox = idBox;
	}

	public boolean isSentServerOk()
	{
		return isSentServerOk;
	}

	public void setSentServerOk(boolean isSentServerOk)
	{
		this.isSentServerOk = isSentServerOk;
	}

}
